import Vue from 'vue'
import Router from 'vue-router'
import mine from './mine'
import tactical from './tactical'
import named from './named'
import reviews from './reviews'
import score from './score' // 成绩录入
import sale from './sale'
import tacticalSportTypes from './tacticalSportTypes'
import tacticalDetail from './tacticalDetail'
import smartCourse from './smartCourse'
import program from './program'
import grade from './grade'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/demos',
      component: () => import('views/Demos')
    },
    {
      path: '/layout',
      component: () => import('views/layout')
    },
    {
      path: '/layout/primary',
      component: () => import('views/layout/Primary')
    },
    {
      path: '/layout/special',
      component: () => import('views/layout/Special')
    },
    ...mine,
    ...tactical,
    ...tacticalSportTypes,
    ...tacticalDetail,
    ...named,
    ...score,
    ...sale,
    ...reviews,
    ...smartCourse,
    ...program,
    ...grade,
    {
      path: '/',
      component: () => import('views')
    }
  ]
})
